import 'package:flutter/material.dart';
import '../pages/server_config_page.dart';

class ServerConfigButton extends StatelessWidget {
  const ServerConfigButton({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return IconButton(
      icon: const Icon(Icons.settings),
      tooltip: '服务器配置',
      onPressed: () {
        Navigator.of(context).push(
          MaterialPageRoute(builder: (context) => const ServerConfigPage()),
        );
      },
    );
  }
}
